<?php
	require_once('config.php');
	$curpage = 'tops';
	
	$type = "all";
	if (isset($_REQUEST['period'])) {
		if ($_REQUEST['period'] == 'day') $type = 'day';
		if ($_REQUEST['period'] == 'week') $type = 'week';
		if ($_REQUEST['period'] == 'month') $type = 'month';
		if ($_REQUEST['period'] == 'year') $type = 'year';
	}
	
	$top = get_top40($type);
	
	require_once('templates/tops.php');
?>
